package com.simple.base.core.repository.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 菜单信息表
 * </p>
 *
 * @author kin
 * @since 2017-12-19
 */
@TableName("sys_menu")
public class SysMenu implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 租户编号
     */
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 模块
     */
	private String name;
    /**
     * 访问路径
     */
	private String link;
    /**
     * 父级编号
     */
	@TableField("parent_id")
	private Long parentId;
    /**
     * 排序编号
     */
	@TableField("order_num")
	private Integer orderNum;
    /**
     * 图标
     */
	private String icon;
    /**
     * 授权(多个用逗号分隔)
     */
	private String permission;
    /**
     * 类型,0-目录,1-菜单,2-按钮
     */
	private Integer type;
    /**
     * 创建人
     */
	@TableField("create_user")
	private String createUser;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 修改人
     */
	@TableField("modify_user")
	private String modifyUser;
    /**
     * 修改日期
     */
	@TableField("modify_date")
	private Date modifyDate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getModifyUser() {
		return modifyUser;
	}

	public void setModifyUser(String modifyUser) {
		this.modifyUser = modifyUser;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Override
	public String toString() {
		return "SysMenu{" +
			", id=" + id +
			", tenantId=" + tenantId +
			", name=" + name +
			", link=" + link +
			", parentId=" + parentId +
			", orderNum=" + orderNum +
			", icon=" + icon +
			", permission=" + permission +
			", type=" + type +
			", createUser=" + createUser +
			", createDate=" + createDate +
			", modifyUser=" + modifyUser +
			", modifyDate=" + modifyDate +
			"}";
	}
}
